load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = [
        "cmd.go",
        "profiling.go",
    ],
    importpath = "k8s.io/kubernetes/pkg/kubectl/cmd",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/kubectl/cmd/auth:go_default_library",
        "//pkg/kubectl/cmd/convert:go_default_library",
        "//pkg/kubectl/cmd/cp:go_default_library",
        "//pkg/kubectl/cmd/get:go_default_library",
        "//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library",
        "//staging/src/k8s.io/client-go/tools/clientcmd:go_default_library",
        "//staging/src/k8s.io/component-base/cli/flag:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/annotate:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/apiresources:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/apply:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/attach:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/autoscale:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/certificates:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/clusterinfo:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/completion:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/config:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/create:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/delete:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/describe:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/diff:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/drain:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/edit:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/exec:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/explain:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/expose:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/kustomize:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/label:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/logs:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/options:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/patch:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/plugin:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/portforward:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/proxy:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/replace:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/rollingupdate:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/rollout:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/run:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/scale:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/set:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/taint:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/top:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/util:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/version:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/wait:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/util/i18n:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/util/templates:go_default_library",
        "//vendor/github.com/spf13/cobra:go_default_library",
        "//vendor/github.com/spf13/pflag:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = ["cmd_test.go"],
    data = ["//pkg/kubectl/cmd/plugin/testdata"],
    embed = [":go_default_library"],
    deps = [
        "//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library",
        "//staging/src/k8s.io/kubectl/pkg/cmd/util:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [
        ":package-srcs",
        "//pkg/kubectl/cmd/auth:all-srcs",
        "//pkg/kubectl/cmd/convert:all-srcs",
        "//pkg/kubectl/cmd/cp:all-srcs",
        "//pkg/kubectl/cmd/get:all-srcs",
        "//pkg/kubectl/cmd/plugin/testdata:all-srcs",
    ],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
